
#ifndef UI_COMMANDWIDGET_H
#define UI_COMMANDWIDGET_H

#include "ui_ui_commandwidget.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CommandWidget : public QWidget, public Ui::UI_CommandWidget
{
    Q_OBJECT

public:
    UI_CommandWidget(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CommandWidget();

    virtual bool checkFocus();

public slots:
    virtual void setFocus();
    virtual void setCommand( const QString & cmd );
    virtual void appendHistory( const QString & msg );
    virtual void trigger();
    virtual void tabPressed();
    virtual void escape();
    virtual void setActionHandler( WF_ActionHandler * ah );
    virtual void setCommandMode();
    virtual void setNormalMode();
    virtual void redirectStderr();
    virtual void processStderr();

protected slots:
    virtual void languageChange();

private:
    WF_ActionHandler* actionHandler;

    void init();

};

#endif // QG_COMMANDWIDGET_H
